package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("f2.txt");
        OutputStreamWriter osw =
                new OutputStreamWriter(fos, StandardCharsets.UTF_8);

        osw.write("阿斯顿发大水发射点发射点发\n");
        osw.write("为噶飞洒地方撒旦撒旦发\n");
        osw.write("电话给当时的法国公司的");
        System.out.println("写出完毕");
        osw.close();


    }
}
